require "tokens/Token.rb"
# = Class TkCString
# Implementation of abstract class Token, which describes the token
# corresponding to the match of regular expression /"(?:\\.|[\x20-\x21\x23-\x5B\x5D-\x7F])*"|'(?:\\.|[\x20-\x26\x28-\x5B\x5D-\x7F])*'/
# Inherits all attributes and methods from the parent class
class TkCString < Token
  @@regexp = /"(?:\\.|[\x20-\x21\x23-\x5B\x5D-\x7F])*"|'(?:\\.|[\x20-\x26\x28-\x5B\x5D-\x7F])*'/
  @@kind = "const"
  @sym = :TkCString
# == Method initialize
# Constructor for the class TkCString
# === Parameters
# * row: Row of the input file in whích the token was found
# * column: Column of the input file in which the token was found
# * value: Expression in file that matched regular expression: "(?:\\.|[\x20-\x21\x23-\x5B\x5D-\x7F])*"|'(?:\\.|[\x20-\x26\x28-\x5B\x5D-\x7F])*'
  def initialize(row, column, value)
    @row = row
    @column = column
    @value = value
  end

# == Method getRegexp
# Method to obtain class attribute @@regexp as a string
  def TkCString.getRegexp
    return @@regexp
  end
# == Method getKind
# Method to obtain class kind @@kind as a string
  def TkCString.getKind
    return @@kind
  end
end
